import java.io.IOException;
import java.util.ArrayList;


public class indexTest {
	public static void main(String []args) throws IOException{
		SystemCatologReport sys = new SystemCatologReport("syscatreport.txt");
		TableRecord record = sys.findTheRecord("Ekrem");
		IndexFile index = new IndexFile(record);
		System.out.println(index.size());
		System.out.println(index.pageNumber());
		byte[] maxString = index.maxStirng();
		for(byte b:maxString){
			System.out.println(b);
		}
		System.out.println(record.getNumberOfTotalIndexRecord());
		ArrayList<Integer> placeOfDataRecord = new ArrayList<Integer>();
		placeOfDataRecord.add(0);
		placeOfDataRecord.add(0);
//		index.creataAPage();
//		index.addIndexRecord("Hasan", placeOfDataRecord);
		System.out.println(index.findProperPageHelper("Ali"));
	}
}
